-- GENERATED SPELL FOR [Vekniss Soldier] --


function spell0_15229(pUnit, Event) --@Agro Drones,Self--
pUnit:FullCastSpellOnTarget(25152,pUnit)
pUnit:RegisterEvent('Sorts_15229', 0, 1)
end

function spell1_15229(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15229', 673, 1)
end

function spell2_15229(pUnit, Event) --@Debilitating Charge,n/a--
pUnit:FullCastSpellOnTarget(1906,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15229', 8260, 1)
end

function spell3_15229(pUnit, Event) --@Frenzy Aura,Self--
pUnit:FullCastSpellOnTarget(25801,pUnit)
pUnit:RegisterEvent('Sorts_15229', 624, 1)
end

function Sorts_15229(pUnit, Event)
local choix_sorts_15229 = math.random(0, 3)
if choix_sorts_15229 == 0 then
pUnit:RegisterEvent('spell0_15229', 1, 1)
end
if choix_sorts_15229 == 1 then
pUnit:RegisterEvent('spell1_15229', 1, 1)
end
if choix_sorts_15229 == 2 then
pUnit:RegisterEvent('spell2_15229', 1, 1)
end
if choix_sorts_15229 == 3 then
pUnit:RegisterEvent('spell3_15229', 1, 1)
end
end

function mob15229_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15229', math.random(1500, 3000), 1)
end

function mob15229_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15229_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15229_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15229, 1, 'mob15229_Action')
RegisterUnitEvent(15229, 2, 'mob15229_Leave')
RegisterUnitEvent(15229, 3, 'mob15229_Kill')
RegisterUnitEvent(15229, 4, 'mob15229_Die')
